import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/',
      name: 'home',
      component: () => import(/* webpackChunkName: "about" */ '@/components/home.vue'),
      redirect: "/cme",
      children: [

        {
          path: '/cme',
          name: 'cme',
          component: () => import(/* webpackChunkName: "cme" */ '@/components/cme.vue')
        },
        {
          path: '/all',
          name: 'all',
          component: () => import(/* webpackChunkName: "all" */ '@/components/all.vue')
        },
        {
          path: '/cart',
          name: 'cart',
          component: () => import(/* webpackChunkName: "cart" */ '@/components/cart.vue')
        }, {
          path: '/login',
          name: 'login',
          component: () => import(/* webpackChunkName: "login" */ '@/components/login.vue')
        }
        , {
          path: '/tadeil/:id?',
          name: 'tadeil',
          component: () => import(/* webpackChunkName: "tadeil" */ '@/components/tadeil.vue')
        }
      ]
    }
  ]
})
